using System;
using System.Collections.Generic;
using System.IO;
using System.Text;

namespace ThemeSolutionProvider
{
  public class MappedTemplateBuilder
  {
    public static void Create(string filePath, string contents, Dictionary<string, string> map)
    {
      using (StreamWriter writer = new StreamWriter(filePath))
      {
        foreach(KeyValuePair<string, string> kv in map)
          contents = contents.Replace(kv.Key, kv.Value);

        writer.Write(contents);
      }
    }
  }
}
